
import Home from '../views/Home.jsx'
import Classify from '../views/Classify.jsx'
import Cart from '../views/Cart.jsx'
import Tab from '../views/Tab.jsx'
import Info from '../views/Info.jsx'
import {Navigate} from "react-router-dom"
const routes=[
    {
        path:"/home",
        element:<Home/>
    },
    {
        path:"/Classify",
        element:<Classify/>
    },
    {
        path:"/Cart",
        element:<Cart/>
    },
    {
        path:"/Tab",
        element:<Tab/>
    },
    {
        path:"/Info/:id",
        element:<Info/>
    },
    {
        path:"/",
        element:<Navigate to='/Classify'></Navigate>
    }
]
export default routes